using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using Zsa.Emulation.Config;

namespace Zsa.Emulation.Render
{
    /// <summary>
    /// Surface area for a render device.
    /// </summary>
    public class SurfaceAreaControl : Control
    {
        #region Fields
        /// <summary>
        /// The machine host.
        /// </summary>
        private NesMachineHost _MachineHost;
        #endregion Fields

        #region Constructor

        /// <summary>
        /// Initializes a new instance of the <see cref="T:SurfaceAreaControl"/> class.
        /// </summary>
        internal SurfaceAreaControl(NesMachineHost machineHost, NesConfigurationProfile config)
        {
            // Set the back color to be black.
            BackColor = Color.Gray;
            // Set the control style.
            SetStyle(config.GraphicsSettings.SurfaceControlStyle, true);
        }
        #endregion Constructor

        /// <summary>
        /// Sets the machine.
        /// </summary>
        /// <param name="host">The host.</param>
        public void SetMachine(NesMachineHost host)
        {
            _MachineHost = host;
        }

        /// <summary>
        /// Gets the machine host.
        /// </summary>
        /// <value>The machine host.</value>
        public NesMachineHost MachineHost
        {
            get
            {
                return _MachineHost;
            }
        }




    }
}
